import request from '@/utils/request'
import {use} from "element-ui/src/locale";

// 查询缴纳租金列表
export function listPay(query) {
  return request({
    url: '/domain/pay/list',
    method: 'get',
    params: query
  })
}

// 查询缴纳租金详细
export function getPay(payId, houseId, userId) {
  return request({
    url: '/domain/pay/' + payId + '/' + houseId + '/' + userId,
    method: 'get'
  })
}

// 新增缴纳租金
export function addPay(data) {
  return request({
    url: '/domain/pay',
    method: 'post',
    data: data
  })
}

// 修改缴纳租金
export function updatePay(data) {
  return request({
    url: '/domain/pay',
    method: 'put',
    data: data
  })
}

// 删除缴纳租金
export function delPay(payId) {
  return request({
    url: '/domain/pay/' + payId,
    method: 'delete'
  })
}
